package com.tao.graduation.Service.Impl;

import com.tao.graduation.Dao.LoginDao;
import com.tao.graduation.Pojo.User;
import com.tao.graduation.Service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginDao loginDao;

    @Override
    public User Login(String username, String password) {
        return loginDao.Login(username, password);
    }

    @Override
    public int Register(User user) {
        return loginDao.Register(user);
    }

    @Override
    public User queryUserId(String username) {
        return loginDao.queryUserId(username);
    }

    @Override
    public int insertUserId(Integer id,String name) {
        return loginDao.insertUserId(id,name);
    }


}
